package com.snake.springboot.custom.service.assemble.points;


import com.snake.springboot.custom.dao.mybatis.entity.points.PointsRetRecordDO;
import com.snake.springboot.custom.dao.mybatis.entity.points.PointsRgeRecordDO;
import org.snake.common.code.SerialNumberGeneratorFactory;
import org.snake.common.utils.PropertyUtils;

/**
 * <p>算力退款组装器
 * 类{@code PointsRetRecordAssembler} </br>
 * 创建时间2025/2/24 18:18
 *
 * @author yangxt
 * @see
 */
public class PointsRetRecordAssembler {
    public static PointsRetRecordDO retDOAss(PointsRgeRecordDO recordDO) {
        PointsRetRecordDO retRecordDO = new PointsRetRecordDO();
        PropertyUtils.copyProperties(retRecordDO,recordDO);
        retRecordDO.setRetId(SerialNumberGeneratorFactory.buildId4Bean());
        return retRecordDO;
    }
}
